package com.bw.common.utils;


import com.bw.common.result.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobControllerAdvice {
    @ExceptionHandler(value = GlobExcption.class)
    public Result error(GlobExcption e){
        return  Result.error(e.getMessage());
    }
}


